package com.ijiuchuang.jc_localization.bean.lite;

import com.litesuits.orm.db.annotation.Column;
import com.litesuits.orm.db.annotation.PrimaryKey;
import com.litesuits.orm.db.annotation.Table;
import com.litesuits.orm.db.enums.AssignType;

/**
 * Created by Veev on 2016/6/12
 *
 * @link 384506557@qq.com
 */
@Table("Rssi")
public class Rssi extends BaseModel {

    // 列名
    public static final String COL_ID = "id";
    public static final String COL_MAC = "mac";
    public static final String COL_RSSI = "rssi";
    public static final String COL_NODE = "node";

    @PrimaryKey(AssignType.AUTO_INCREMENT)
    @Column(COL_ID)
    private long id;

    @Column(COL_MAC)
    private String mac;
    @Column(COL_RSSI)
    private int rssi;
    @Column(COL_NODE)
    private int node;

    public Rssi(String mac, int rssi, int node) {
        this.mac = mac;
        this.rssi = rssi;
        this.node = node;
    }

    @Override
    public String toString() {
        return "Rssi{" +
                "id = '" + id + '\'' +
                "mac = '" + mac + '\'' +
                "rssi = '" + rssi + '\'' +
                "node = '" + node + '\'' +
                '}';
    }
}
